/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package uk.ac.cam.cl.oscar;

import java.awt.image.*;
import java.util.Vector;

/**
 *
 * @author voydmayne
 */
public class DemoTester {
    public BufferedImage imgTest;
    private String path;
    private Demonstration DemoAppInst;
    
    public DemoTester(String imagepath){
        path = imagepath;
       // DemoAppInst = demo;
    }
    
    public void runTest(){
        imgTest = ImageOperations.load(path);
        
        // tell the demo applet that there's a new request
        Demonstration.DemoAppInst.processNewRequest(new Runnable() {

            public void run() {
                throw new UnsupportedOperationException("Not supported yet.");
            }
        });
        Demonstration.DemoAppInst.displayNewInitImage(this.toString(), imgTest);
        
        Vector<ImageRecord> vm = ImageFinder.getMatches(imgTest);
    }

}
